/*
 * main.cpp
 *
 *  Created on: Apr 12, 2010
 *      Author: songyp
 */

#include <e32base.h>
#include <e32err.h>
#include <ShapeDemo.h>

GLDEF_C TInt E32Main()
	{
	__UHEAP_MARK;
	CTrapCleanup *cleanup = CTrapCleanup::New();
	
	CShape * shape = NULL;
	TInt err( KErrNone );
	TRAP(err, 
			shape = CShape::NewL( TUid::Uid( 0xE9FDF57b ) ) );
	if( KErrNone == err)
		shape->Draw();
	else
		{
		// ...
		}
	delete shape;
	delete cleanup;
	__UHEAP_MARKEND;
	
	return KErrNone;
	}
